package com.dc.em;

public enum ErrorMessageEnum {
    SYS_ERROR(1001, "系统异常，请联系管理员!"),
    NETWORK(1002,"网络连接失败，请联系管理员!"),
    FORMAT_ERROR(1003,"账号格式不正确，或者密码错误!"),
    LOGIN_ERROR(1004,"账号不存在，或者密码不正确!"),
    ADD_USER_ERROR(1005,"新增用户失败！"),
    LOGIN_TIMEOUT(1006,"登录超时,请登录后在尝试"),
    REPEAT_ACCOUNT(1007,"账号已存在"),
    UPDATE_USER(1008,"修改用户失败"),
    UPDATE_USER_PHONE(1009,"手机号码格式不正确"),
    UPDATE_USER_PASSWORD(1010,"密码长度至少为6位"),
    DELETED_USER(1011,"删除失败"),
    UPDATE_USER_FAILE(1012,"该账户已被删除"),
    ADD_LOGINLOG_ERROR(1013,"新增登录日志失败"),
    ADD_SHOES_ERROR(1014,"新增商品失败"),
    DELETED_SHOES_ERROR(1015,"删除商品失败"),
    SELECT_SHOESBYID(1016,"根据id查询商品失败"),
    UPDATE_SHOES(1017,"修改商品失败"),
    ADD_ORDER_ERROR(1018,"新增订单失败"),
    DELETED_ORDER_ERROR(1019,"删除订单失败"),
    UPDATE_ORDER_ERROR(1020,"修改订单失败"),
    ADD_ADDRESS_ERROR(1021,"新增地址失败"),
    UPDATE_ADDRESS_ERROR(1022,"修改地址失败"),
    DELETED(1023,"删除地址失败"),
    ADD_SHOPCAR_ERROR(1024,"加入购物车失败"),
    DELETED_SHOPCAR_ERROR(1025,"移除失败"),
    ADD_SHOPORDER_ERROR(1026,"新增订单失败"),
    MESSAGE_ERROR(1027,"验证码错误请重试"),
    UPDATE_ORDER_ERROR_STATE(1028,"审核订单失败")
    ;
    private int code;
    private String mesg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMesg() {
        return mesg;
    }

    public void setMesg(String mesg) {
        this.mesg = mesg;
    }

    ErrorMessageEnum(int code, String mesg) {
        this.code = code;
        this.mesg = mesg;
    }
}
